<?php
$config['root_path'] = DCPATH;
$config['user_files_path'] = $config['root_path'] . "/userfiles/";
//$config['user_files_path'] ="C:/xampp/htdocs/esaco/source/userfiles/";
$config['user_files_url'] = "http://{$_SERVER['SERVER_NAME']}/userfiles/";
//$config['user_files_url'] = "http://{$_SERVER['SERVER_NAME']}/esaco/source/userfiles/";

//bild
$config['user_image_path']=$config['user_files_path'].'image/';
$config['user_image_url']=$config['user_files_url'].'image/';

$config['user_media_path']=$config['user_files_path'].'media/';
$config['user_media_url']=$config['user_files_url'].'media/';

//$fckeditor_path = '/userfiles/';
//news
$config['user_news_pdf_path']=$config['user_files_path'].'news_pdf/';
$config['user_news_pdf_url']=$config['user_files_url'].'news_pdf/';

// document_upload_config
$config['docs_upload_config'] = array('upload_path' => $config['user_files_path'] . "download");

//news_upload_config
$config['news_upload_config'] = array();

$config['news_upload_config']['upload_path'] = $config['user_news_pdf_path'];
$config['news_upload_config']['allowed_types'] = 'pdf';

/* brands */
$config['user_brands_audio_path']=$config['user_media_path'].'/brands/';
$config['user_brands_audio_url']=$config['user_media_url'].'/brands/';
//brands_upload_config
$config['brands_upload_config'] = array();
$config['brands_upload_config']['upload_path'] = $config['user_brands_audio_path'];
$config['brands_upload_config']['allowed_types'] = 'mp3|wma';

// home_upload_config
$config['user_homepage_audio_path']=$config['user_media_path'].'/homepage/';
$config['user_homepate_audio_url']=$config['user_media_url'].'/homepage/';
$config['homepage_upload_config'] = array();
$config['homepage_upload_config']['upload_path'] = $config['user_homepage_audio_path'];
$config['homepage_upload_config']['allowed_types'] = 'mp3|wma';

/* table suport multi lang */
$config['support_multi_lang_tables'] = array('tbl_nav','tbl_c1','tbl_news','brands','products','showrooms','accessories','accessory_types');
$config['sync_muli_lang'] = TRUE;

$config['external_link'] = array (
	'0' => array (
		'val' => '_self',
		'text' => 'Same Site',
		'method' => 'index'
	),
	'1' => array (
		'val' => '_blank',
		'text' => 'New Site',
		'method' => 'index'
	),
	'2' => array (
		'val' => '_popup',
		'text' => 'Popup',
		'method' => 'popup'
	),
	'3' => array (
		'val' => '_none',
		'text' => 'None',
		'method' => 'none'
	)
);

$config['templates'] = array(
	'home' => array (
		'name' => 'HomePage',
		'controller' => 'cms_home_template'
	),
	'news' => array (
		'name' => 'News',
		'controller' => 'cms_news_template'
	),
	'person' => array (
		'name' => 'Person',
		'controller' => 'cms_person_template'
	),
	'text' => array (
		'name' => 'Text (1 Column/Row)',
		'controller' => 'cms_text_template'
	),
	'text_image' => array (
		'name' => 'Text with Image top and right',
		'controller' => 'cms_text_image_template'
	));

$config['media_default'] = array('upload_path' => $config['user_media_path'], 'allowed_types' => 'gif|jpg|png|jpeg');
$config['media_thumb'] = array('upload_path' => $config['user_media_path'],
								'user_media_url' => $config['user_media_url'],
								'image_library' => 'gd2',
								'thumb_marker' => '_thumb',
								'create_thumb' => TRUE,
								'maintain_ratio' => TRUE,
								'quality' => "80",
								'width' => "120",
								'height' => "80");

$config['lang_suffix_default'] = "us";
$config['lang_seperator'] = "_";

$config['form_email'] = array(
  'protocol' => 'smtp',  
  'smtp_host' => 'smtp.purpleasia.com',
  'smtp_user' => 'trinm@purpleasia.com',
  'smtp_pass' => 'trinm',
  'mailtype'=>'html',
  'smtp_timeout'=>10,
  'charset' => 'utf-8',
  'wordwrap' => FALSE);
  
$config['url_friendly'] = true;
?>